home *** CD-ROM | disk | FTP | other *** search
- 56
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- SetDisplay
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetDisplay sets the screen size and depth.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baSetDisplay( Width , Height , Depth , Mode , Force )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer, Integer, Integer, String, Integer.
- --- RECORDSEPARATOR ---
- Width is the new width of the screen in pixels.
- --- RECORDSEPARATOR ---
- Height is the new height of the screen in pixels.
- --- RECORDSEPARATOR ---
- Depth is the new depth of the screen in bits.
- --- RECORDSEPARATOR ---
- Mode is the way in which the new display is set. Can be:
- --- RECORDSEPARATOR ---
- "temp"
- --- RECORDSEPARATOR ---
- temporari
- --- RECORDSEPARATOR ---
- ly change the display settings.
- --- RECORDSEPARATOR ---
- "perm"
- --- RECORDSEPARATOR ---
- permanently change the display settings.
- --- RECORDSEPARATOR ---
- "test"
- --- RECORDSEPARATOR ---
- tests whether the display can be set without restarting.
- --- RECORDSEPARATOR ---
- If Force is true, forces the display to change.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 0 if the display was changed or can be changed without restarting.
- --- RECORDSEPARATOR ---
- Returns 1 if Windows will need to be restarted for the change to take effect.
- --- RECORDSEPARATOR ---
- Returns less than 0 if another error occurred, eg invalid screen size.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baSetDisplay( 640 , 480 , 8 , "temp" , false )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baSetDisplay( 640 , 480 , 8 , "temp" , false )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function will not work under Windows 3.1 - it will always return 0.
- --- RECORDSEPARATOR ---
- Not all display cards and drivers support screen changing without restarting.
- --- RECORDSEPARATOR ---
- The force option is not officially supported by Microsoft. It forces the display to
- --- RECORDSEPARATOR ---
- change without restarting. This may work correctly with some video cards and
- --- RECORDSEPARATOR ---
- drivers, but can cause palette problems on others, and crash the system on some.
- --- RECORDSEPARATOR ---
- You are advised to only use this option on known hardware and after extensive
- --- RECORDSEPARATOR ---
- testing.
- --- RECORDSEPARATOR ---
- If you use the "temp" mode, then the user's preferred screen display will be
- --- RECORDSEPARATOR ---
- returned when the system is restarted. You can not set a "temp" mode unless it can
- --- RECORDSEPARATOR ---
- be changed without restarting Windows.
- --- RECORDSEPARATOR ---
- The "temp" mode should only be used if you do not intend the user to be able to
- --- RECORDSEPARATOR ---
- access the task bar or desktop while your program is running. When using the
- --- RECORDSEPARATOR ---
- "temp" mode, Windows may not position the desktop icons and task bar in usable
- --- RECORDSEPARATOR ---
- positions.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetDisplayEx
- --- RECORDSEPARATOR ---
- baScreenInfo